package com.dongdong.android.widget.ui.safe;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.dongdong.android.widget.R;
import com.dongdong.animal.tortoise.keystorage.KeyStoreManager;

import javax.crypto.SecretKey;


public class AesDemoActivity extends Activity implements View.OnClickListener {

    private EditText etInText;
    private TextView btnEncode;
    private TextView outEnText;
    private TextView btnDecode;
    private TextView outDeText;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_safe);
        etInText = (EditText) findViewById(R.id.etInText);
        btnEncode = (TextView) findViewById(R.id.btnEnCode);
        btnDecode = (TextView) findViewById(R.id.btnDeCode);
        outEnText = (TextView) findViewById(R.id.tvOutEnText);
        outDeText = (TextView) findViewById(R.id.tvOutDeText);

        btnEncode.setOnClickListener(this);
        btnDecode.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btnEnCode:
                String intTexxt = etInText.getText().toString().trim();

                break;
            case R.id.btnDeCode:
                String intTexxt2 = outEnText.getText().toString().trim();

                break;
            default:
                break;
        }
    }
}
